package com.beidouapp.common.util;

import java.util.HashMap;
import java.util.Map;

/**
 *  返回码说明
 */
public class TimingStatus
{

	private static Map<Integer, String> status = new HashMap<Integer, String>();

	static
	{
		status.put(0, "执行成功/数据上传成功");
		status.put(1, "执行失败");
		status.put(100, "执行失败");
	}

	
	public static String getErrorMsg(int code)
	{
		if (status.containsKey(code))
		{
			return status.get(code);
		}
		return "【" + code + "】未知错误!";
	}
}
